
// 模态框开关状态
const TabbarReducer = (prevState = {
   visible: false,
   title: 'noTitle'
}, action) => {
   let newState = { ...prevState }
   switch (action.type) {
      case "modal-show":
         newState.visible = true
         return newState
      case "modal-hide":
         newState.visible = false
         return newState
      case "change-modal-title":
         newState.title = action.payload
         return newState
      default:
         return prevState
   }
}
export default TabbarReducer